package com.cx.androidtools;

import com.cx.androidtools.R;
import com.cx.androidtools.adapter.AndroidVersionAdapter;
import com.cx.androidtools.customWidget.indicator.TitleFlowIndicator;
import com.cx.androidtools.customWidget.indicator.ViewFlow;

import android.app.Activity;
import android.os.Bundle;

public class TitleViewFlowExample extends Activity {
	private ViewFlow viewFlow;

	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setTitle(R.string.title_title);
		setContentView(R.layout.title_layout);

		viewFlow = (ViewFlow) findViewById(R.id.viewflow);
		AndroidVersionAdapter adapter = new AndroidVersionAdapter(this);
		viewFlow.setAdapter(adapter);
		TitleFlowIndicator indicator = (TitleFlowIndicator) findViewById(R.id.viewflowindic);
		indicator.setTitleProvider(adapter);
		viewFlow.setFlowIndicator(indicator);

	}
}
